class Dog {

    name: string = "旺财"
    age: number = 19

    bark() {
        alert('汪汪汪')
    }
}

const dog = new Dog();